package com.soft.javase.day06.regex;

import java.util.Arrays;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/24
 */
public class SplitString {
    public static void main(String[] args) {
        String str1 = "192.168.105.27";
        String[] arr1 = str1.split("\\.");
        System.out.println(Arrays.toString(arr1));

        String str2 = "18 22 40 65";
        String[] arr2 = str2.split("\\s+");
        System.out.println(Arrays.toString(arr2));
    }
}
